import java.util.Random;
import java.util.Scanner;

public class Scans {
    static void Scanners() {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();

            if (a == 0) {
                break;
            } else {
                System.out.println(a);
            }
        }

        System.out.println("------------毁灭1------------");

        scanner.nextLine();//nextInt不消耗换行符，以此防止以下代码读到换行符
        String b = scanner.nextLine();
        System.out.println(b);
        scanner.close();

        System.out.println("------------毁灭2------------");

        Random random = new Random();
        int c = random.nextInt(100) + 1;//[1,101)
        System.out.println(c);

        System.out.println("------------毁灭3------------");
    }
}
